package mianxiangduixiang.week3;

import java.util.Random;

public class HuiWenNum {
    public static void main(String[] args) {
        boolean notFound = true;
        int a;
        Random random = new Random();
        while (notFound) {
            a = random.nextInt(90000) + 10000;
            String str = a + "";
            String str1 = new StringBuffer(str).reverse().toString();

            if (str1.equals(str)) {
                notFound = false;
                System.out.println(str);
            }
        }
    }
}
